
const path = require('path')

const resolve = (dir) => path.join(__dirname, dir);

module.exports = {
  publicPath:
    process.env.NODE_ENV === "production" ? "/workCount" : "/",
   // indexPath: "index.html",
    configureWebpack: {
    resolve: {
      alias: {
        '@': resolve('src'),
        '@c': resolve('src/components')
      }
    }
  },
  lintOnSave:false,
  outputDir: "workCount",
  devServer: {
    proxy: {
      "/api": {
        target: "http://172.20.48.90:8090/workcount",
        changeOrigin: true,
        pathRewrite: {
          "^/api": ""
        }
      }
    }
  }
}